package com.lagou.model;

import java.io.Serializable;
import java.util.List;

public class UserMessage implements Serializable {

    private static final long serialVersionUID = -4729638835655094394L;

    private String type;
    private User user;
    private Exam exam;
    private List<Exam> exams;

    public UserMessage(String type, User user,Exam exam,List<Exam> exams) {
        this.type = type;
        this.user = user;
        this.exam = exam;
        this.exams = exams; //把一个学生的考试 做成一个list集合来存放
    }

    public UserMessage() {
    }

    public Exam getExam() {
        return exam;
    }

    public List<Exam> getExams() {
        return exams;
    }

    public void setExams(List<Exam> exams) {
        this.exams = exams;
    }

    public void setExam(Exam exam) {
        this.exam = exam;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "UserMessage{" +
                "type='" + type + '\'' +
                ", user=" + user +
                ", exam=" + exam +
                ", exams=" + exams +
                '}';
    }
}
